﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Webcam.Image
{
    /// <summary>
    /// A line object
    /// </summary>
    public class Line
    {
        /// <summary>
        /// Point 1
        /// </summary>
        public Point p1;

        /// <summary>
        /// Point 2
        /// </summary>
        public Point p2;

        /// <summary>
        /// The proposed color of the line
        /// </summary>
        public RGB Color;

        /// <summary>
        /// Create a line object
        /// </summary>
        /// <param name="p1">Point 1</param>
        /// <param name="p2">Point 2</param>
        public Line(Point p1, Point p2)
        {
            this.p1 = p1;
            this.p2 = p2;
            this.Color = RGB.Red;
        }

        /// <summary>
        /// Create a line object
        /// </summary>
        /// <param name="p1">Point 1</param>
        /// <param name="p2">Point 2</param>
        /// <param name="color">Color</param>
        public Line(Point p1, Point p2, RGB color)
            : this(p1,p2)
        {
            this.Color = color;
        }

    }
}
